﻿using System;

namespace Mga
{
	/// <summary>
	/// 消息包头部解析接口
	/// </summary>
	public interface IHeadFormater
	{
		bool TryParse(string data, NetworkType type, out PackageHead head, out object body);

		bool TryParse(byte[] data, out PackageHead head, out byte[] bodyBytes);

		byte[] BuildHearbeatPackage();
	}
}